package cn.stronglink.assetmanage.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Keep;
import org.greenrobot.greendao.annotation.Transient;

import java.util.List;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by Tgb on 2018/6/15.
 * 维修
 */
@Entity
public class Repair {

    /**
     * createBy : 878827689403076608
     * createName : 管理员
     * createTime : 2017-12-19 17:34:14
     * detailList : [{"assetId":942993497675554816,"assetId_":"942993497675554816","assetName":"库房设备","assetNo":"1111","brandName":"DELL","buyTime":"2017-12-19 13:41:57","createBy":878827689403076608,"createTime":"2017-12-19 17:34:16","expirationTime":"2017-12-19 13:41:51","id":943051848388210688,"id_":"943051848388210688","modelName":"DELL R720","rackName":"DS-5-3-2","remark":"qq","repairId":943051840410644480,"repairId_":"943051840410644480","rfidNo":"qw","roomName":"东四5层","serialNo":"123","startU":1,"status":2,"typeName":"DELL服务器"}]
     * executeTime : 2017-12-19 17:33:51
     * id : 943051840410644480
     * id_ : 943051840410644480
     * operatiorName : 管理员
     * operatorBy : 878827689403076608
     * operatorBy_ : 878827689403076608
     * roomId : 878578294318800896
     * roomName : 东四5层
     * status : 1
     */
    @Id
    private Long repair_id;
    private long createBy;
    private String createName;
    private String createTime;
    private String executeTime;
    private long id;
    private String id_;
    private String operatiorName;
    private long operatorBy;
    private String operatorBy_;
    private String roomId;
    private String roomName;
    private int status;
    private int orderType;
    @Transient
    private List<RepailDetail> detailList;

    @Keep
    public Repair(Long repair_id, long createBy, String createName, String createTime, String executeTime, long id, String id_, String operatiorName, long operatorBy, String operatorBy_, String roomId, String roomName, int status, int orderType) {
        this.repair_id = repair_id;
        this.createBy = createBy;
        this.createName = createName;
        this.createTime = createTime;
        this.executeTime = executeTime;
        this.id = id;
        this.id_ = id_;
        this.operatiorName = operatiorName;
        this.operatorBy = operatorBy;
        this.operatorBy_ = operatorBy_;
        this.roomId = roomId;
        this.roomName = roomName;
        this.status = status;
        this.orderType = orderType;
    }

    @Keep
    public Repair() {
    }

    public long getCreateBy() {
        return createBy;
    }

    public void setCreateBy(long createBy) {
        this.createBy = createBy;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getExecuteTime() {
        return executeTime;
    }

    public void setExecuteTime(String executeTime) {
        this.executeTime = executeTime;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getId_() {
        return id_;
    }

    public void setId_(String id_) {
        this.id_ = id_;
    }

    public String getOperatiorName() {
        return operatiorName;
    }

    public void setOperatiorName(String operatiorName) {
        this.operatiorName = operatiorName;
    }

    public long getOperatorBy() {
        return operatorBy;
    }

    public void setOperatorBy(long operatorBy) {
        this.operatorBy = operatorBy;
    }

    public String getOperatorBy_() {
        return operatorBy_;
    }

    public void setOperatorBy_(String operatorBy_) {
        this.operatorBy_ = operatorBy_;
    }

    public String getRoomId() {
        return roomId;
    }

    public void setRoomId(String roomId) {
        this.roomId = roomId;
    }

    public String getRoomName() {
        return roomName;
    }

    public void setRoomName(String roomName) {
        this.roomName = roomName;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public List<RepailDetail> getDetailList() {
        return detailList;
    }

    public void setDetailList(List<RepailDetail> detailList) {
        this.detailList = detailList;
    }

    public int getOrderType() {
        return this.orderType;
    }

    public void setOrderType(int orderType) {
        this.orderType = orderType;
    }

    public Long getRepair_id() {
        return this.repair_id;
    }

    public void setRepair_id(Long repair_id) {
        this.repair_id = repair_id;
    }

}
